import 'package:FiduMart/generated/json/base/json_field.dart';
import 'package:FiduMart/generated/json/mining_userday_log_entity.g.dart';
import 'dart:convert';
export 'package:FiduMart/generated/json/mining_userday_log_entity.g.dart';

@JsonSerializable()
class MiningUserdayLogEntity {
	int? page;
	int? pageSize;
	int? total;
	int? totalAmount;
	@JSONField(name: "List")
	List<MiningUserdayLogList>? list;

	MiningUserdayLogEntity();

	factory MiningUserdayLogEntity.fromJson(Map<String, dynamic> json) => $MiningUserdayLogEntityFromJson(json);

	Map<String, dynamic> toJson() => $MiningUserdayLogEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class MiningUserdayLogList {
	String? id;
	String? miningId;
	int? year;
	int? month;
	int? day;
	int? amount;
	String? investId;
	int? createdAt;

	MiningUserdayLogList();

	factory MiningUserdayLogList.fromJson(Map<String, dynamic> json) => $MiningUserdayLogListFromJson(json);

	Map<String, dynamic> toJson() => $MiningUserdayLogListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}